package zen 
{
	/**
	 * ...
	 * @author morgan
	 */
	public class Sun extends SelectableObject
	{
		[Embed (source = "../../data/zen/sun.png")] private var img_sun:Class;
		public function Sun(x:int, y:int) 
		{
			super(x, y, img_sun);
		}
		
		override public function update():void 
		{
			if (dist < 80)
			{
				velocity.x = dx / dist * 20;
				velocity.y = dy / dist * 20;
			}
			else
			{
				velocity.x *= 0.98;
				velocity.y *= 0.98;
			}
			super.update();
		}
	}

}